package com.zw.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zw.common.entity.product.AttrEntity;
import com.zw.common.entity.product.AttrGroupEntity;
import com.zw.common.utils.PageUtils;
import com.zw.common.vo.product.SpuItemAttrGroupVO;
import com.zw.gulimall.product.vo.AttrGroupRelationVo;
import com.zw.gulimall.product.vo.AttrGroupWithAttrRespVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zw
 * @email Alisinngai@gmail.com
 * @date 2023-06-11 23:54:03
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> queryAttrGroupRelation(Long attrGroupId);

    PageUtils queryNoAttrGroupRelationPage(Map<String, Object> params,Long attrGroupId);

    void deleteRelation(List<AttrGroupRelationVo> vo);

    void saveAttrRelation(List<AttrGroupRelationVo> vos);

    List<AttrGroupWithAttrRespVo> queryAttrGroupWithAttrByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVO> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

